<?php echo $head ?>
<div class="right-content">
    <div class="clearfix">
        <div class="we7-padding-bottom clearfix">
            <div class="pull-right">
                <a href="javascript:void(0);" data-toggle="modal" data-target="#user-modal"
                   class="btn btn-primary we7-padding-horizontal">添加渠道</a>
            </div>
        </div>
        <table class="table we7-table table-hover">
            <thead class="navbar-inner">
            <tr>
                <th class="text-center" style="width:150px;">渠道名称点击跳转到渠道的支付渠道-0</th>
                <th class="text-center" style="width:100px">渠道ID</th>
                <th class="text-center" style="width:320px">渠道地址</th>
                <th class="text-right" style="width:130px;">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php
            foreach($data as $k=>$v)
            {
                echo '<tr>
                <td class="text-center" style="width:150px;"><a
                            href="#">'.$v['name'].'</a>
                </td>
                <td class="text-center" style="width:100px;">'.$v['id'].'</td>
                <td class="text-center" style="width:320px;">'.$v['url'].'</td>
                <td style="width:130px;">
                    <div class="link-group">
                        <a href="/admin/channel/save?id='.$v['id'].'">编辑</a>
                    </div>
                </td>
            </tr>';
            }
            ?>

            </tbody>
        </table>
    </div>
</div>





<!-- 添加应用操作员模态框-->
        <div class="modal in" id="user-modal" style="display: none; padding-right: 17px;">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">×</span></button>
                        <h3 class="modal-title">添加渠道</h3>
                    </div>
                    <form action="/admin/channel/add"
                          method="post">
                        <input type="hidden" name="id" value="0">
                        <input type="hidden" name="m" value="junsion_winaward">
                        <div class="modal-body we7-form">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">渠道名称</label>
                                <div class="col-sm-10">
                                    <input id="add-username" name="title" type="text" class="form-control">
                                    <span class="help-block">请输入渠道名称。</span>
                                </div>
                            </div>
<!--                            <div class="form-group">-->
<!--                                <label class="col-sm-2 control-label">渠道标识</label>-->
<!--                                <div class="col-sm-10">-->
<!--                                    <input id="add-username" name="identification" type="text" class="form-control">-->
<!--                                    <span class="help-block">请输入渠道标识，只允许数字和字母。不超过128个字。</span>-->
<!--                                </div>-->
<!--                            </div>-->
                        </div>
                        <div class="modal-footer">
                            <button type="submit" class="btn btn-primary">确认</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="modal-backdrop in" style="display: none"></div>